extends Node2D


func _init():
	# 打印初始化信息
	# Print initialization message
	print('mod demo init')
	GlobalSignal.gs_skill_set_caster.connect(_on_skill_set_caster)

func _on_skill_set_caster(caster: Unit, skill: Skill):
	pass
	#var rng = RandomNumberGenerator.new()
	#var w = rng.randf()
	#skill.skill_range = 300.0
	#if w < 0.6:
	#	# 染红
	#	caster.modulate = Color(1, 0, 0)
	#	skill.skill_range = 150.0
	#if w < 0.3:
	#	# 染黑
	#	caster.modulate = Color(0, 0, 0)
	#	skill.skill_range = 20.0
